Survey.Survey.cssType = "bootstrap";
//3
var surveyJSON = {
	locale: "zh-cn",
	pages: [{
		name: "page5",
		elements: [{
				type: "text",
				isRequired: true,
				name: "是否同意接受该调查",
				title: {
					"zh-cn": "是否同意接受该调查"
				},
				choices: ["同意"]
			},
			{
				type: "text",
				isRequired: true,
				name: "填表人签名",
				title: {
					"zh-cn": "签名"
				}
			},
			{
				type: "text",
				name: "填表人与患者关系",
				title: {
					"zh-cn": "与患者关系"
				},
				isRequired: true,
			},
			{
				type: "text",
				isRequired: true,
				name: "填表人联系电话",
				title: {
					"zh-cn": "联系电话"
				},
				"validators": [{
					"type": "text",
					"minLength": 11,
					"maxLength": 11,
					"allowDigits": true,
					"text": "电话号码字段长度应为11"
				}]
			},

			{
				type: "text",
				isRequired: true,
				name: "填表人填写日期",
				title: {
					"zh-cn": "填写日期"
				},
				inputType: "date"
			},
			{
				type: "text",
				isRequired: true,
				name: "登录账号",
				title: "问卷id",
				visible: false,
				"defaultValue": "1"
			},
			{
				type: "text",
				isRequired: true,
				name: "_id",
				title: "调查员id",
				visible: false,
				"defaultValue": "11"
			},


			{
				type: "text",
				name: "问卷类型",
				title: {
					"zh-cn": "问卷类型"
				},
				readOnly: true,
				"defaultValue": "I"
			},
			{
				type: "panel",
				name: "采样地址",
				elements: [{
						type: "text",
						name: "所在的省",
						isRequired: true,
						title: "所在的省",
					},
					{
						type: "text",
						name: "所在的市",
						title: "所在的市",
						isRequired: true,
					},
					{
						type: "text",
						name: "所在的县或区",
						title: "所在的县或区",
						isRequired: true,
					},
				]
			},

			{
				type: "text",
				name: "抽样点编号",
				title: "抽样点编号",
				isRequired: true,
			},
			{
				"type": "text",
				"name": "标本编号",
				"title": {
					"zh-cn": "标本编号"
				},
				"isRequired": true
			},


			{
				type: "text",
				isRequired: true,
				name: "姓名",
				title: {
					"zh-cn": "患者姓名"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "性别",
				title: {
					"zh-cn": "患者性别"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "出生日期",
				title: {
					"zh-cn": "患者出生日期"
				},
				inputType: "date"
			},
			{
				type: "text",
				isRequired: true,
				name: "身份证号码",
				title: {
					"zh-cn": "患者身份证号码"
				},
				isRequired: true,
				"validators": [{
					"type": "text",
					"text": "身份证字段长度应该为18",
					"minLength": 18,
					"maxLength": 18,
					"allowDigits": true
				}]
			},
			{
				type: "text",
				isRequired: true,
				name: "身高",
				title: "身高（cm）",
				inputType: "number",
				placeHolder: "cm"
			},
			{
				type: "text",
				isRequired: true,
				name: "体重",
				title: "体重（kg）",
				inputType: "number",
				placeHolder: "kg"
			},
			{
				type: "text",
				isRequired: true,
				name: "民族",
				title: "民族",
				choices: ["汉族", "少数民族", "不详"]
			},

			{
				type: "panel",
				name: "户籍地址",
				elements: [{
						type: "text",
						name: "户籍地址所在的省",
						isRequired: true,
						title: "户籍地址所在的省",
					},
					{
						type: "text",
						name: "户籍地址所在的市",
						title: "户籍地址所在的市",
						isRequired: true,
					},
					{
						type: "text",
						name: "户籍地址所在的县(区)",
						title: "户籍地址所在的县(区)",
						isRequired: true,
					},
				]
			},
			{
				type: "text",
				name: "户籍地址所在的镇(乡)",
				title: "户籍地址所在的镇(乡)",
				isRequired: true
			},
			{
				type: "text",
				name: "户籍地址所在的街道(村)",
				title: "户籍地址所在的街道(村)",
				isRequired: true
			},
			{
				type: "text",
				name: "户籍地址所在的居委会(组)",
				title: "户籍地址所在的居委会(组)",
				isRequired: true
			},
			{
				type: "panel",
				name: "现居住址",
				// title: "省份",
				elements: [{
						type: "text",
						name: "现居住址所在的省",
						isRequired: true,
						title: "现居住址所在的省",
					},
					{
						type: "text",
						name: "现居住址所在的市",
						title: "现居住址所在的市",
						isRequired: true,
					},
					{
						type: "text",
						name: "现居住址所在的县(区)",
						title: "现居住址所在的县(区)",
						isRequired: true,

					},
				]
			},
			{
				type: "text",
				name: "现居住址所在的镇(乡)",
				title: "现居住址所在的镇(乡)",
				isRequired: true
			},
			{
				type: "text",
				name: "现居住址所在的街道(村)",
				title: "现居住址所在的街道(村)",
				isRequired: true
			},
			{
				type: "text",
				name: "现居住址所在的居委会(组)",
				title: "现居住址所在的居委会(组)",
				isRequired: true
			},

			{
				type: "text",
				isRequired: true,
				name: "家庭人口数",
				title: " 家庭人口数",
				inputType: "number",
				placeHolder: "人"
			},

			{
				type: "text",
				isRequired: true,
				name: "婚姻",
				title: "婚姻"
			},
			{
				type: "text",
				isRequired: true,
				name: "文化程度",
				title: "文化程度"
			},
			{
				type: "text",
				isRequired: true,
				name: "职业",
				title: "职业"
			},
			{
				type: "text",
				isRequired: true,
				name: "家庭人均月收入",
				title: "家庭人均月收入"
			},
			{
				type: "text",
				isRequired: true,
				name: "医保类型",
				title: {
					"zh-cn": "医保类型（可多选）"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "是否办有医疗救助",
				title: {
					"zh-cn": "是否办有医疗救助"
				}
			},

			{
				type: "text",
				isRequired: true,
				name: "是否被医生诊断为脑出血",
				title: {
					"zh-cn": "是否被医生诊断为脑出血"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "首次被确诊为脑出血的时间",
				title: {
					"zh-cn": "首次被确诊为脑出血的时间"
				},
				inputType: "date"
			},
			{
				type: "text",
				isRequired: true,
				name: "脑出血是否复发",
				title: {
					"zh-cn": "脑出血是否复发"
				}
			},
			{
				type: "text",
				name: "发病次数",
				title: {
					"zh-cn": "发病次数"
				},
				visibleIf: "{脑出血是否复发} = \"是\"",
				isRequired: true
			},

			// 		
			{
				type: "text",
				isRequired: true,
				name: "最近一次发病时间",
				visibleIf: "{脑出血是否复发} = \"是\"",
				title: {
					"zh-cn": "最近一次发病时间"
				},
				inputType: "date"
			},
			{
				type: "text",
				isRequired: true,
				name: "亲属中是否患有脑出血",
				title: {
					"zh-cn": "亲属中是否患有脑出血"
				},
				choices: ["是", "否"]
			},
			{
				type: "text",
				isRequired: true,
				name: "患病亲属为",
				visibleIf: "{亲属中是否患有脑出血} = \"是\"",
				title: {
					"zh-cn": "患病亲属为（可多选）"
				}
			},
			// 有其他5
			{
				type: "text",
				isRequired: true,
				name: "患病亲属为-Comment",
				visibleIf: "{患病亲属为} contains \"other\" and {亲属中是否患有脑出血} = \"是\"",
				title: {
					"zh-cn": "患病亲属为（other）"
				}
			},

			{
				type: "html",
				name: "question7",
				html: "<h3>以下问题针对最近一次脑出血诊治情况<h3/>"
			},
			{
				type: "text",
				isRequired: true,
				name: "目前就诊医院",
				title: {
					"zh-cn": "目前就诊医院"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "病案号",
				title: {
					"zh-cn": "病案号"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "入院时间",
				title: {
					"zh-cn": "入院时间"
				},
				inputType: "date"
			},

			{
				type: "text",
				isRequired: true,
				name: "入院24小时内收缩压(mmHg)",
				title: {
					"zh-cn": "入院24小时内收缩压(mmHg)"
				},
				inputType: "number"
			},
			{
				type: "text",
				isRequired: true,
				name: "入院24小时内舒张压(mmHg)",
				title: {
					"zh-cn": "入院24小时内舒张压(mmHg)"
				},
				inputType: "number"
			},


			{
				type: "text",
				isRequired: true,
				name: "心率",
				title: {
					"zh-cn": "心率（次/分）"
				},
				inputType: "number"
			},


			{
				type: "text",
				isRequired: true,
				name: "脉搏",
				title: {
					"zh-cn": "脉搏：（次/分）："
				},
				inputType: "number"
			},
			{
				type: "text",
				isRequired: true,
				name: "入院时GCS评分分值(3-15)",
				title: {
					"zh-cn": "入院时GCS评分分值(3-15)"
				},
				validators: [{
					type: "numeric",
					minValue: 3,
					maxValue: 15
				}],
				inputType: "number"
			},
			{
				type: "text",
				isRequired: true,
				name: "入院时NIHSS评分分值(0-42)",
				title: {
					"zh-cn": "入院时NIHSS评分分值(0-42)"
				},
				validators: [{
					type: "numeric",
					minValue: 0,
					maxValue: 42
				}],
				inputType: "number"
			},
			{
				type: "text",
				isRequired: true,
				name: "是否通过医院绿色通道入院",
				title: {
					"zh-cn": "是否通过医院绿色通道入院"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "是否行外科手术治疗",
				title: {
					"zh-cn": "是否行外科手术治疗"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "手术方式",
				visibleIf: "{是否行外科手术治疗} = \"是\"",
				title: {
					"zh-cn": "手术方式"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "脑出血发病病因",
				title: {
					"zh-cn": "脑出血发病病因"
				}
			},

			{
				type: "text",
				isRequired: true,
				name: "脑出血发病时首次CT检查的时间",
				title: {
					"zh-cn": "脑出血发病时首次CT检查的时间"
				},
				inputType: "date"
			},
			{
				type: "text",
				isRequired: true,
				name: "脑出血类型",
				title: {
					"zh-cn": "脑出血类型（可多选）"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "脑出血部位",
				title: {
					"zh-cn": "脑出血部位（可多选）"
				}
			},

			{
				type: "text",
				isRequired: true,
				name: "是否破入脑室系统",
				title: {
					"zh-cn": "是否破入脑室系统"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "首次头部CT检查脑出血量",
				visibleIf: "{是否破入脑室系统} = \"否\"",
				title: {
					"zh-cn": "首次头部CT检查脑出血量(ml)"
				},
				inputType: "number",
				placeHolder: {
					"zh-cn": "ml"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "头部CT复查是否存在血肿扩大",
				visibleIf: "{是否破入脑室系统} = \"否\"",
				title: {
					"zh-cn": "头部CT复查是否存在血肿扩大"
				}
			},

			{
				type: "text",
				isRequired: true,
				name: "脑出血发病以前是否有过脑梗死",
				title: {
					"zh-cn": "脑出血发病以前是否有过脑梗死"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "首次脑梗死发病时间",
				visibleIf: "{脑出血发病以前是否有过脑梗死} = \"是\"",
				title: {
					"zh-cn": "首次脑梗死发病时间"
				},
				inputType: "date"
			},
			{
				type: "text",
				isRequired: true,
				name: "是否规律服用抗血小板聚集药物",
				visibleIf: "{脑出血发病以前是否有过脑梗死} = \"是\"",
				title: "是否规律服用抗血小板聚集药物(规律：统指遵医嘱时间)"
			},

			{
				type: "text",
				isRequired: true,
				name: "抗血小板聚集药物类型",
				visibleIf: "{是否规律服用抗血小板聚集药物} = \"是\" and {脑出血发病以前是否有过脑梗死} = \"是\" ",
				title: "药物类型（可多选）"
			},
			{
				type: "panel",
				name: "panel2",
				elements: [{
						type: "text",
						isRequired: true,
						name: "是否知道自己的血压",
						title: "是否知道自己的血压"
					},
					{
						type: "text",
						isRequired: true,
						name: "既往有无高血压病史",
						visibleIf: "{是否知道自己的血压} = \"是\"",
						title: "既往有无高血压病史         (高血压：既往明确诊断或收缩压≥140mmHg或舒张压≥90mmHg)"
					},


					{
						type: "text",
						isRequired: true,
						name: "高血压病史年限",
						visibleIf: "{既往有无高血压病史} = \"有\" and {是否知道自己的血压} = \"是\"",
						title: {
							"zh-cn": "高血压病史年限"
						},
						inputType: "number",
						placeHolder: {
							"zh-cn": "年"
						}
					},
					{
						type: "panel",
						name: "最高血压",
						title: "最高血压：",
						visibleIf: "{既往有无高血压病史} = \"有\" and {是否知道自己的血压} = \"是\"",
						elements: [

							{
								type: "text",
								name: "最高血压1",
								isRequired: true,
								width: "100px",
								titleLocation: "hidden"
							},
							{
								type: "text",
								name: "question20",
								width: "70px",
								startWithNewLine: false,
								readOnly: true,
								titleLocation: "hidden",
								placeHolder: "/"
							},
							{
								type: "text",
								name: "最高血压2",
								isRequired: true,
								width: "100px",
								startWithNewLine: false,
								titleLocation: "hidden"
							},
							{
								type: "text",
								name: "question22",
								width: "100px",
								startWithNewLine: false,
								readOnly: true,
								titleLocation: "hidden",
								placeHolder: "mmHg"
							}
						]
					},

					{
						type: "text",
						isRequired: true,
						name: "是否规律测量血压",
						visibleIf: "{既往有无高血压病史} = \"有\"and {是否知道自己的血压} = \"是\"",
						title: "是否规律测量血压"
					},

					{
						type: "panel",
						name: "血压控制范围",
						title: "血压控制范围：",
						visibleIf: "{是否规律测量血压} = \"是\" and {既往有无高血压病史} = \"有\"and {是否知道自己的血压} = \"是\"",
						elements: [{
								"type": "text",
								isRequired: true,
								"name": "血压控制范围1",
								"width": "200px",
								"titleLocation": "hidden",

							},
							{
								"type": "text",
								"name": "question2",
								"width": "70px",
								"startWithNewLine": false,
								"readOnly": true,
								"titleLocation": "hidden",
								"placeHolder": "/"
							},
							{
								"type": "text",
								isRequired: true,
								"name": "控制范围2",
								"width": "200px",
								"startWithNewLine": false,
								"titleLocation": "hidden",
							},
							{
								"type": "text",
								"name": "question2",
								"width": "100px",
								"startWithNewLine": false,
								"readOnly": true,
								"titleLocation": "hidden",
								"placeHolder": "mmHg"
							},

						],
					},
					{
						type: "text",
						isRequired: true,
						name: "是否规律服用降压药",
						visibleIf: "{既往有无高血压病史} = \"有\" and {是否知道自己的血压} = \"是\"",
						title: "是否规律服用降压药"
					}
				]
			},
			{
				type: "panel",
				name: "panel3",
				elements: [{
						type: "text",
						isRequired: true,
						name: "是否测量过血脂",
						title: {
							"zh-cn": "是否测量过血脂"
						}
					},

					{
						type: "text",
						isRequired: true,
						name: "血脂范围",
						visibleIf: "{是否测量过血脂} = \"是\" ",
						title: "血脂范围"
					},
					{
						type: "text",
						isRequired: true,
						name: "是否规律服用调脂药",
						visibleIf: "{血脂范围} = \"偏高\" and {是否测量过血脂} = \"是\"",
						title: "是否规律服用调脂药"
					},
					{
						type: "text",
						isRequired: true,
						name: "调脂药物类型",
						visibleIf: "{是否规律服用调脂药} = \"是\" and {血脂范围} = \"偏高\" and {是否测量过血脂} = \"是\"",
						title: "药物类型"
					},
					{
						type: "text",
						isRequired: true,
						name: "目前血脂是否正常",
						visibleIf: "{血脂范围} = \"偏高\" and {是否测量过血脂} = \"是\"",
						title: "目前血脂是否正常"
					},
				]
			},

			{
				type: "panel",
				name: "panel4",
				elements: [{
						type: "text",
						isRequired: true,
						name: "以前是否测量血糖",
						title: "以前是否测量血糖"
					},
					{
						type: "text",
						isRequired: true,
						name: "血糖范围",
						visibleIf: "{以前是否测量血糖} = \"是\"",
						title: "血糖范围         (血糖偏高：空腹血糖≥7.0mmol/l；或餐后2小时血糖≥11.1mmol/l)"
					},

					{
						type: "text",
						isRequired: true,
						name: "是否规律监测血糖",
						visibleIf: "{血糖范围} = \"偏高\" and {以前是否测量血糖} = \"是\"",
						title: "是否规律监测血糖"
					},

					{
						type: "panel",
						name: "血糖控制范围",
						title: "血糖控制范围",
						visibleIf: "{是否规律监测血糖} = \"是\" and {血糖范围} = \"偏高\" and {以前是否测量血糖} = \"是\"",
						elements: [{
								type: "text",
								name: "血糖控制范围1",
								width: "100px",
								isRequired: true,
								titleLocation: "hidden",
								inputType: "number",
							},
							{
								type: "text",
								name: "question20",
								width: "70px",
								startWithNewLine: false,
								readOnly: true,
								titleLocation: "hidden",
								placeHolder: "~"
							},
							{
								type: "text",
								name: "血糖控制范围2",
								isRequired: true,
								width: "100px",
								startWithNewLine: false,
								titleLocation: "hidden",
								inputType: "number"
							},
							{
								type: "text",
								name: "question22",
								width: "100px",
								startWithNewLine: false,
								readOnly: true,
								titleLocation: "hidden",
								placeHolder: "mmol/l"
							}

						]
					},
					{
						type: "text",
						isRequired: true,
						name: "是否规律服用降糖药",
						visibleIf: "{血糖范围} = \"偏高\" and {以前是否测量血糖} = \"是\"",
						title: "是否规律服用降糖药"
					},
					{
						type: "text",
						isRequired: true,
						name: "是否使用胰岛素",
						visibleIf: "{血糖范围} = \"偏高\" and {以前是否测量血糖} = \"是\"",
						title: "是否使用胰岛素"
					},
					{
						type: "text",
						isRequired: true,
						name: "是否存在糖尿病慢性并发症",
						visibleIf: "{血糖范围} = \"偏高\" and {以前是否测量血糖} = \"是\"",
						title: "是否存在糖尿病慢性并发症"
					},
					{
						type: "text",
						isRequired: true,
						name: "何种并发症",
						visibleIf: "{是否存在糖尿病慢性并发症} = \"是\" and {血糖范围} = \"偏高\" and {以前是否测量血糖} = \"是\"",
						title: {
							"zh-cn": "何种并发症（可多选）"
						}
					},

				],
			},
			{
				type: "panel",
				name: "panel5",
				elements: [{
						type: "text",
						isRequired: true,
						name: "心房颤动病史",
						title: "心房颤动病史       (心房颤动：心电图明确诊断)"
					},

					{
						type: "text",
						isRequired: true,
						name: "是否规律使用抗凝药物",
						visibleIf: "{心房颤动病史} = \"有\"",
						title: "是否规律使用抗凝药物"
					},
					{
						type: "text",
						isRequired: true,
						name: "使用时长1",
						visibleIf: "{是否规律使用抗凝药物} = \"是\" and {心房颤动病史} = \"有\"",
						inputType: "number",
						title: "使用时长",
						placeHolder: "年"
					},
					{
						type: "text",
						isRequired: true,
						name: "抗凝药物类型",
						visibleIf: "{是否规律使用抗凝药物} = \"是\" and {心房颤动病史} = \"有\"",
						title: "药物类型"
					},
					// 有其他-Comment
					{
						type: "text",
						isRequired: true,
						name: "抗凝药物类型-Comment",
						visibleIf: "{抗凝药物类型} contains \"other\" and {是否规律使用抗凝药物} = \"是\" and {心房颤动病史} = \"有\"",
						title: "药物类型（other）"
					},

					{
						type: "text",
						isRequired: true,
						name: "是否定期监测凝血功能",
						visibleIf: "{心房颤动病史} = \"有\"",
						title: "是否定期监测凝血功能"
					}
				]
			},
			{
				type: "panel",
				name: "panel6",
				elements: [{
						type: "text",
						isRequired: true,
						name: "冠心病病史",
						title: "冠心病病史           (冠心病：既往在医院明确诊断有心肌梗死或心绞痛发作病史)"
					},

					{
						type: "text",
						isRequired: true,
						name: "是否规律服用药物",
						visibleIf: "{冠心病病史} = \"有\"",
						title: "是否规律服用药物",
					}
				],
			},
			{
				type: "text",
				isRequired: true,
				name: "长期服用其他药物史",
				title: {
					default: "长期服用其他药物史",
					"zh-cn": "长期服用其他药物史（可多选）"
				}
			},

			// 有其他2
			{
				type: "text",
				isRequired: true,
				name: "长期服用其他药物史-Comment",
				title: {
					default: "长期服用其他药物史",
					"zh-cn": "长期服用其他药物史（other）"
				},
				visibleIf: "{长期服用其他药物史} contains \"other\""
			},


			{
				"type": "matrixdynamic",
				"name": "长期服用药物的具体情况",
				"visibleIf": "{长期服用其他药物史} <> [\"无\"]",
				"title": "药物具体情况",
				"columns": [{
						"name": "药物名称",
						"title": " 药物名称",
						"cellType": "text"
					},
					{
						"name": "服药时长",
						"title": " 服药时长",
						"cellType": "text"
					},
				]
			},



			{
				type: "text",
				isRequired: true,
				name: "夜间睡觉是否打呼噜",
				title: "夜间睡觉是否打呼噜"
			},
			{
				type: "text",
				isRequired: true,
				name: "吸烟史",
				title: "吸烟史         (吸烟：每日吸烟≥1支)"
			},

			{
				type: "text",
				isRequired: true,
				name: "烟龄",
				visibleIf: "{吸烟史} = \"有\"",
				title: "烟龄",
				inputType: "number",
				placeHolder: "年"
			},
			{
				type: "text",
				isRequired: true,
				name: "吸烟量",
				visibleIf: "{吸烟史} = \"有\"",
				title: "吸烟量",
				inputType: "number",
				placeHolder: "支/天"
			},
			{
				type: "text",
				isRequired: true,
				name: "发病前是否戒烟",
				visibleIf: "{吸烟史} = \"有\"",
				title: "发病前是否戒烟"
			},
			{
				type: "text",
				isRequired: true,
				name: "已戒烟多少年",
				visibleIf: "{发病前是否戒烟} = \"是\" and {吸烟史} = \"有\"",
				title: "已戒烟多少年",
				inputType: "number",
				placeHolder: "年"
			},
			{
				type: "text",
				isRequired: true,
				name: "是否被动吸烟",
				title: {
					"zh-cn": "是否被动吸烟         (被动吸烟：指不吸烟者吸入吸烟者呼出的烟雾及卷烟燃烧产生的烟雾，也称为“非自愿吸烟”，或“吸二手烟”)"
				}
			},

			{
				type: "text",
				isRequired: true,
				name: "饮酒史",
				title: "饮酒史        (每周饮酒≥1次，不管饮酒量多少”)"
			},

			{
				type: "text",
				isRequired: true,
				name: "酒龄",
				visibleIf: "{饮酒史} = \"有\"",
				title: "酒龄",
				inputType: "number",
				placeHolder: "年"
			},
			{
				type: "text",
				isRequired: true,
				name: "饮酒种类",
				visibleIf: "{饮酒史} = \"有\"",
				title: "饮酒种类（可多选）",
			},
			{
				type: "text",
				isRequired: true,
				name: "发病前是否戒酒",
				visibleIf: "{饮酒史} = \"有\"",
				title: "发病前是否戒酒"
			},
			{
				type: "text",
				isRequired: true,
				name: "已戒酒多少年",
				visibleIf: "{发病前是否戒酒} = \"是\" and {饮酒史} = \"有\"",
				title: "已戒酒多少年",
				inputType: "number",
				placeHolder: "年"
			},
			{
				type: "text",
				name: "体力活动",
				title: "体力活动",
				isRequired: true,
			},


			{
				type: "text",
				isRequired: true,
				name: "晚上一般几点睡觉",
				title: {
					"zh-cn": "晚上一般几点睡觉"
				}
			},
			{
				type: "text",
				name: "晚上一般睡眠时长",
				isRequired: true,
				title: {
					"zh-cn": "晚上一般睡眠时长"
				}
			},


			{
				type: "text",
				isRequired: true,
				name: "膳食习惯",
				title: {
					"zh-cn": "膳食习惯（可多选）"
				}
			},
			{
				type: "html",
				name: "question1",
				html: {
					"zh-cn": "<h4>食物食用频率：</h4>\n<p>您需要仔细的回忆在<b><u>过去的一年中</u></b>，患者食用以下食物的频率。<p>"
				}
			},

			{
				type: "text",
				isRequired: true,
				name: "食用水产品（包括鱼、虾、贝类、海带）等的频率是",
				title: {
					"zh-cn": "食用水产品（包括鱼、虾、贝类、海带等）的频率是"
				}
			},

			{
				type: "text",
				isRequired: true,
				name: "食用蔬菜的频率是",
				title: {
					"zh-cn": "食用蔬菜的频率是"
				}
			},


			{
				type: "text",
				isRequired: true,
				name: "食用水果的频率是",
				title: {
					"zh-cn": "食用水果的频率是"
				}
			},


			{
				type: "text",
				isRequired: true,
				name: "食用奶及奶制品的频率是",
				title: {
					"zh-cn": "食用奶及奶制品的频率是"
				}
			},


			{
				type: "text",
				isRequired: true,
				name: "食用辣椒的频率是",
				title: {
					"zh-cn": "食用辣椒的频率是"
				}
			},


			{
				type: "text",
				isRequired: true,
				name: "您食用熏制食品（包括熏肉、熏肝、熏鱼、熏蛋、熏豆腐干等）的频率是",
				title: {
					"zh-cn": "您食用熏制食品（包括熏肉、熏肝、熏鱼、熏蛋、熏豆腐干等）的频率是"
				}
			},

			{
				type: "text",
				isRequired: true,
				name: "您食用腌制食品（包括腌制蘑菇、腌制腊肉、腌制腊肠、腌制酸菜、腌制咸鱼、腌制草莓、腌制香菜心、腌制生姜等）的频率是",
				title: {
					"zh-cn": "您食用腌制食品（包括腌制蘑菇、腌制腊肉、腌制腊肠、腌制酸菜、腌制咸鱼、腌制草莓、腌制香菜心、腌制生姜等）的频率是"
				}
			},

			{
				type: "text",
				isRequired: true,
				name: "您家庭使用的油为",
				title: "您家庭使用的油为（可多选）"
			},
			// 有其他3
			{
				type: "text",
				isRequired: true,
				name: "您家庭使用的油为-Comment",
				title: "您家庭使用的油为（other）",
				visibleIf: "{您家庭使用的油为} contains \"other\""
			},

			{
				type: "multipletext",
				name: "油1",
				title: {
					"zh-cn": "家庭用油量"
				},
				items: [{
						name: "家庭每月用油",
						isRequired: true,
						placeHolder: {
							"zh-cn": "斤"
						},
						"inputType": "number",
						title: {
							"zh-cn": "家庭每月用油"
						}
					},
					{
						name: "多少人食用",
						isRequired: true,
						placeHolder: {
							"zh-cn": "人"
						},
						"inputType": "number",
						title: {
							"zh-cn": "多少人食用"
						}
					},
				]
			},

			{
				type: "multipletext",
				name: "血常规检测",
				title: "血常规检测（入院时）",
				items: [{
						name: "白细胞",
						isRequired: true,
						title: {
							"zh-cn": "白细胞(10^9/L)"
						}
					},
					{
						name: "中性粒细胞百分比",
						isRequired: true,
						title: "中性粒细胞百分比(%)"
					},
					{
						name: "中性粒细胞计数",
						isRequired: true,
						title: "中性粒细胞计数(10^9/L)"
					},
					{
						name: "淋巴细胞百分比",
						isRequired: true,
						title: "淋巴细胞百分比(%)"
					},
					{
						name: "淋巴细胞计数",
						isRequired: true,
						title: "淋巴细胞计数(10^9/L)"
					},
					{
						name: "红细胞",
						isRequired: true,
						title: "红细胞(10^12/L)"
					},
					{
						name: "血红蛋白",
						isRequired: true,
						title: "血红蛋白(g/L) "
					},
					{
						name: "血小板",
						isRequired: true,
						title: "血小板(10^9/L)"
					},

				],
				colCount: 2
			},

			{
				type: "multipletext",
				name: "血生化检测",
				title: "血生化检测（入院时）",
				items: [{
						name: "血生化检测-谷丙转氨酶",
						isRequired: true,
						title: {
							"zh-cn": "谷丙转氨酶(U/L)"
						}
					},
					{
						name: "血生化检测-谷草转氨酶",
						isRequired: true,
						title: "谷草转氨酶(U/L)"
					},
					{
						name: "血生化检测-白蛋白",
						isRequired: true,
						title: "白蛋白(g/L)"
					},
					{
						name: "血生化检测-球蛋白",
						isRequired: true,
						title: "球蛋白(g/L)"
					},
					{
						name: "血生化检测-血肌酐",
						isRequired: true,
						title: "血肌酐(umol/l)"
					},
					{
						name: "血生化检测-血尿素氮",
						isRequired: true,
						title: "血尿素氮(mmol/l)"
					},
					{
						name: "血生化检测-尿酸",
						isRequired: true,
						title: "尿酸(umol/l)"
					},
					{
						name: "血生化检测-同型半胱氨酸",
						isRequired: true,
						title: "同型半胱氨酸(umol/l)"
					},

					{
						name: "血生化检测-空腹血糖",
						isRequired: true,
						title: {
							"zh-cn": "空腹血糖(mmol/l)"
						}
					},
					{
						name: "血生化检测-糖化血红蛋白",
						isRequired: true,
						title: "糖化血红蛋白(%)"
					},
					{
						name: "血生化检测-甘油三酯",
						isRequired: true,
						title: "甘油三酯(mmol/l)"
					},
					{
						name: "血生化检测-胆固醇",
						isRequired: true,
						title: "胆固醇(mmol/l)"
					},
					{
						name: "血生化检测-高密度脂蛋白",
						isRequired: true,
						title: "高密度脂蛋白(mmol/l)"
					},
					{
						name: "血生化检测-低密度脂蛋白",
						isRequired: true,
						title: "低密度脂蛋白(mmol/l)"
					},
				],
				colCount: 2
			},
			{
				type: "multipletext",
				name: "凝血常规检测",
				title: "凝血常规检测（入院时）",
				items: [{
						name: "凝血常规检测-凝血酶原时间",
						isRequired: true,
						title: {
							"zh-cn": "凝血酶原时间(s)"
						}
					},
					{
						name: "凝血常规检测-国际标准化比值",
						isRequired: true,
						title: "国际标准化比值"
					},
					{
						name: "凝血常规检测-活化部分凝血活酶时间",
						isRequired: true,
						title: "活化部分凝血活酶时间(s)"
					},
					{
						name: "凝血常规检测-凝血酶时间",
						isRequired: true,
						title: "凝血酶时间(s)"
					},
					{
						name: "凝血常规检测-纤维蛋白原",
						isRequired: true,
						title: "纤维蛋白原(g/l)"
					},
					{
						name: "凝血常规检测-D-二聚体",
						isRequired: true,
						title: "D-二聚体(mg/l)"
					},
					{
						name: "凝血常规检测-血浆纤溶酶原抗原测定",
						isRequired: true,
						title: "血浆纤溶酶原抗原测定(mg/l)"
					},
					{
						name: "凝血常规检测-血浆抗凝血酶III抗原测定",
						isRequired: true,
						title: "血浆抗凝血酶III抗原测定(mg/l)"
					},
				],
				colCount: 2
			},
			{
				type: "text",
				name: "心电图结果",
				isRequired: true,
				title: {
					"zh-cn": "心电图结果"
				}
			},

			{
				type: "text",
				name: "颈部血管彩超结果",
				isRequired: true,
				title: {
					"zh-cn": "颈部血管彩超结果"
				}
			},
			{
				type: "text",
				name: "头部CT/CTA结果：",
				isRequired: true,
				title: {
					"zh-cn": "头部CT/CTA结果："
				}
			},

			{
				type: "text",
				isRequired: true,
				name: "戒烟教育",
				title: "戒烟教育"
			},
			{
				type: "text",
				isRequired: true,
				name: "限酒教育",
				title: "限酒教育"
			},
			{
				type: "text",
				isRequired: true,
				name: "控制体重教育",
				title: "控制体重教育"
			},
			{
				type: "text",
				isRequired: true,
				name: "低盐饮食教育",
				title: "低盐饮食教育"
			},
			{
				type: "text",
				isRequired: true,
				name: "低脂饮食教育",
				title: "低脂饮食教育"
			},
			{
				type: "text",
				isRequired: true,
				name: "糖尿病健康教育",
				title: "糖尿病健康教育"
			},
			{
				type: "text",
				isRequired: true,
				name: "是否接受过脑卒中（即中风）教育和/或以下材料",
				title: {
					default: "您是否接受过卒中教育和/或以下材料（可多选）",
					"zh-cn": "是否接受过脑卒中（即中风）教育和/或以下材料（可多选）"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "获取上述信息的渠道",
				title: {
					default: "您获取上述信息的渠道（可多选）",
					"zh-cn": "获取上述信息的渠道（可多选）"
				}
			},
			// 有其他
			{
				type: "text",
				isRequired: true,
				name: "获取上述信息的渠道-Comment",
				title: {
					default: "您获取上述信息的渠道（other）",
					"zh-cn": "获取上述信息的渠道（可多选）"
				},
				visibleIf: "{获取上述信息的渠道} contains \"other\""
			},

			{
				type: "text",
				isRequired: true,
				name: "调查员签字",
				title: {
					"zh-cn": "调查员签字"
				}
			},
			{
				type: "text",
				isRequired: true,
				name: "调查日期",
				title: {
					"zh-cn": "调查日期"
				},
				inputType: "date"
			},
			// 
		],
	}, ]
}

var survey = new Survey.Model(surveyJSON);
$("#surveyContainer").Survey({
	model: survey,
});

//该函数实现填一个判断一个，判断的是有范围的，比如说电话号码长度
survey.checkErrorsMode = "onValueChanged";

//需要添加的是此部分，获取json即可
var surveyData = $("#surveyData").text();
survey.data = JSON.parse(surveyData);
survey.mode = "display"; //make the survey readonly